public class Program
     
    public int count = 0
    public String message
     
    public void readyGo()
        Rectangle r = new Rectangle(10, 0, 150, 45)
         
        if(r.getArea() > 10)
            shout("Area", r.getArea())
            int i = 10
            while( i > 0 )
                shout("Cuenta.regesiva!!", i)
                i--
                 
        else
            String msg = "Rectangulo.es.muy.pequenio"
            shout(msg)
 
        return
 
    private int squareSum(int x, int y)
        int result = x*x + y*y
        return result
 
public class Rectangle
     
    protected float x
    protected float y
    protected float w
    protected float h
 
    public Rectangle(float x, float y, float w, float h)
        this.x = x
        this.y = y
        this.w = w
        this.h = h
 
    public float getArea()
        return this.w*this.h
     
    public float getRight()
        return this.x + this.w
 
    public float getBottom()
        return this.y + this.h
 
public class Box extends Rectangle
    protected float depth
 
    public Box(float x, float y, float w, float h, float d)
        super(x, y, w, h)
        depth = d
     
    protected float getArea()
        return -1
 
    public float getVolume()
        return w*h*depth